﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FB.DataAccess;
using FB.Utilities;

namespace FB.Bussiness
{
    public class VideoCategoryBO
    {
        public IEnumerable<VideoCategory> GetAllVideoCategory()
        {
            VideoCategoryDAO _dao = new VideoCategoryDAO();
            return _dao.GetAllVideoCategory();
        }
        public VideoCategory GetVideoCategoryById(Guid id)
        {
            VideoCategoryDAO _dao = new VideoCategoryDAO();
            return _dao.GetVideoCategoryByID(id);
        }
        public bool UpdateVideoCategory(VideoCategory inVideoCategory)
        {
            VideoCategoryDAO _dao = new VideoCategoryDAO();
            return _dao.UpdateVideoCategory(inVideoCategory);
        }
        public bool InsertVideoCategory(VideoCategory inVideoCategory)
        {
            VideoCategoryDAO _dao = new VideoCategoryDAO();
            return _dao.InsertVideoCategory(inVideoCategory);
        }

        public ReturnValue<bool> DelVideoCategory(Guid id)
        {
            VideoCategoryDAO _dao = new VideoCategoryDAO();
            return _dao.DelVideoCategory(id);
        }

        public List<VideoCategory> GetVideoCategoryLimit(int limit)
        {
            VideoCategoryDAO _dao = new VideoCategoryDAO();
            return _dao.GetVideoCategoryLimit(limit);
        }
    }
}
